Skip to content

Conversation

@erikmd
Copy link
Collaborator

@erikmd erikmd commented Oct 3, 2021

This "future-proof PR" is needed to help interoperability in a loosely-coupled way,
so the latest learn-ocaml-client binary (& the learn-ocaml.el front-end depending on it) is compat. with learn-ocaml ↓ version "0.12".

There are now three possible commands:

  • learn-ocaml-client --version
  • learn-ocaml-client server-version
  • learn-ocaml-client server-version --min (the min of the previous two)

Note: the back-end API is unchanged by this PR.

erikmd and others added 4 commits October 3, 2021 02:32
* Usage: learn-ocaml-client server-version
     or: learn-ocaml-client server-version --min
     or: learn-ocaml-client server-version -s http://localhost:8080
     or: learn-ocaml-client server-version --local

* Also, ensure that the error
  """
  [ERROR] API request not supported by server v.%s using client v.%s
  Do you use the latest learn-ocaml-client binary?
  """
  is accompanied with 70 as exit code.

See also https://tldp.org/LDP/abs/html/exitcodes.html & /usr/include/sysexits.h
href: bc69958

Co-Authored-By: Léo Segond <[email protected]>
Co-Authored-By: Erik Martin-Dorel <[email protected]>
@erikmd
Copy link
Collaborator Author

erikmd commented Oct 4, 2021

Let's close-reopen this one for CI just in case, as it deals with learn-ocaml-client

@erikmd erikmd closed this Oct 4, 2021
@erikmd erikmd reopened this Oct 4, 2021
@erikmd erikmd added this to the learn-ocaml 0.13.0 milestone Oct 4, 2021
@erikmd erikmd self-assigned this Oct 4, 2021
@erikmd erikmd merged commit d607281 into ocaml-sf:master Oct 4, 2021
@erikmd erikmd deleted the server-version branch October 4, 2021 22:23
@erikmd erikmd mentioned this pull request Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: enhancement Enhancement to an existing user-facing feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants